<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8"/>
    <title>派单详情</title>
    <link href="https://cdn.bootcss.com/twitter-bootstrap/3.0.1/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>

<div class="container">
    <div class="row clearfix">
        <div class="col-md-12 column">
            <div class="list-group" >
                <a href="#" class="list-group-item active">配送单信息</a>
            </div>
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title">
                    订单信息
                </h3>
            </div>
            <div class="panel-body">
                <table align="center">
                    <tr>
                        <td>订单编号：&nbsp;&nbsp;&nbsp;${order.ordernum}&nbsp;&nbsp;&nbsp;</td>
                        <td>订单时间：&nbsp;&nbsp;&nbsp;${order.orderdate?string("yyyy-MM-dd HH:mm:ss")}&nbsp;&nbsp;&nbsp;</td>
                        <td>订单金额：&nbsp;&nbsp;&nbsp;${order.ordermoney}&nbsp;&nbsp;&nbsp;</td>
                        <td>实付金额：&nbsp;&nbsp;&nbsp;${order.amountpaid}&nbsp;&nbsp;&nbsp;</td>

                    </tr>
                    <tr><td></td></tr>
                    <tr>
                        <td>优惠金额：&nbsp;&nbsp;&nbsp;${order.yhmoney}&nbsp;&nbsp;&nbsp;</td>
                        <td>优惠方式：&nbsp;&nbsp;&nbsp;${order.yhway}&nbsp;&nbsp;&nbsp;</td>
                        <td>付款方式：&nbsp;&nbsp;&nbsp;${order.payway}&nbsp;&nbsp;&nbsp;</td>
                        <td>订单状态：&nbsp;&nbsp;&nbsp;<#if (order.orderstate==1)>未支付</#if>
                            <#if (order.orderstate==2)>未发货</#if>
                            <#if (order.orderstate==3)>已发货</#if>
                            <#if (order.orderstate==4)>已完成</#if>
                            <#if (order.orderstate==5)>已取消</#if>&nbsp;&nbsp;&nbsp;</td>
                    </tr>
                    <tr>
                        <td>付款时间：&nbsp;&nbsp;&nbsp;${order.paytime?string("yyyy-MM-dd HH:mm:ss")}&nbsp;&nbsp;&nbsp;</td>
                        <td>订单来源：&nbsp;&nbsp;&nbsp;${order.source}&nbsp;&nbsp;&nbsp;</td>
                        <td>配送员：&nbsp;&nbsp;&nbsp;${order.deliveryman!''}&nbsp;&nbsp;&nbsp;</td>
                    </tr>
                </table>
            </div>
        </div>

            <div class="panel panel-warning">
                <div class="panel-heading">
                    <h3 class="panel-title">
                        客户信息
                    </h3>
                </div>
                <div class="panel-body">
                        <table align="center">
                            <tr>
                                <td>客户编号：${order.client.clientnum}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                                <td>客户名称：${order.client.username}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                                <td>认证状态：<#if (order.client.clientstate==1)>已认证</#if>
                                    <#if (order.client.clientstate==0)>未认证</#if>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                            </tr>
                            <tr><td></td></tr>
                            <tr>
                                <td>联系人：${order.client.linkman}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                                <td>联系方式：${order.client.phone}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                                <td>收货地址：${order.client.address}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                            </tr>
                        </table>
                </div>

            </div>
            <div class="panel panel-success">
            <div class="panel-heading">
                <h3 class="panel-title">
                    商品明细
                </h3>
            </div>
            <div class="panel-body">
                <table class="table" >
                    <thead>
                    <tr>
                        <th> 订单编号 </th>
                        <th> 商品名称 </th>
                        <th>商品编码</th>
                        <th>单价</th>
                        <th> 数量</th>
                        <th>订单金额</th>
                        <th>优惠金额</th>
                        <th>实付金额</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr class="info">
                        <td>${order.ordernum}</td>
                        <td>${order.commodity.commName}</td>
                        <td>${order.commodity.commCode}</td>
                        <td>${order.commodity.price}</td>
                        <td>${order.num}</td>
                        <td>${order.ordermoney}</td>
                        <td>${order.yhmoney}</td>
                        <td>${order.amountpaid}</td>
                    </tr>
                    </tbody>
                </table>
            </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>